﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

/// <summary>
///CommonWS 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
//若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。 
[System.Web.Script.Services.ScriptService]
public class CommonWS : System.Web.Services.WebService {

    public CommonWS () {

        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
    }

    //[WebMethod]
    //public string HelloWorld() {
    //    return "Hello World";
    //}

    /// <summary>
    /// 写日志
    /// </summary>
    /// <param name="msg">内容</param>
    /// <param name="user">用户</param>
    [WebMethod]
    public void WriteLog(string msg, string user)
    {
        LogRecord.Info(msg + " - " + user);
    }
}
